/*
 * Demonstrate dynamic initialization
 * by computing volume of a cylinder
 * with radius of 4 and height of 5.
 */
class DynInit {
    public static void main(String args[]) {
        double radius = 4, height = 5; // initialize variables
        
        // Initialize volume variable at run-time
        double volume = 3.1416 * radius * radius * height;

        System.out.println("The volume of a cylinder with radius " 
                + radius + " and height " + height + " is " + volume +
                " units cubed.");
    }
}
